var http = require('http');

function onRequest(request, response){
    console.log('A user made a request ' + request.url);
    response.writeHead(200, {'Context-Type':'text/html'});
    response.write('<head><meta charset="UTF-8"/></head>');
    response.write('这里是您的响应结果！');
    response.end();
}

http.createServer(onRequest).listen(8888);

console.log('Server is now running on port 8888 ......');